package com.itbaizhan.shopping_common.service;

import com.itbaizhan.shopping_common.result.BaseResult;

import java.util.concurrent.ExecutionException;

/**
 * 短信服务
 */
public interface MessageService {

    /**
     * 发送短信
     * @param phone 手机号
     * @param code 验证码
     * @return 发送结果
     */
    BaseResult sendMessage(String phone, String code) throws ExecutionException, InterruptedException;

}
